Docker Compose
Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services. Then, with a single command, you create and start all the services from your configuration.

Key Features
- Multiple isolated environments: You can run multiple environments of a Compose application on a single host.
- Preserve volume data: Compose preserves all volumes used by your services.
- Only recreate changed containers: Compose caches the configuration used to create a container. When you restart a service that has not changed, Compose re-uses the existing containers.
Basic Workflow
- Define your app's environment with a
Dockerfileso it can be reproduced anywhere. - Define the services that make up your app in
docker-compose.ymlso they can be run together in an isolated environment. - Run
docker compose upand the Docker compose command starts and runs your entire app.